import request from '@/utils/request'

const model = "/console/system/attach-cate/"


export function attachCateList(query) {
  return request({
    url: model + 'listAll',
    method: 'get',
    params: query
  })
}

export function addAttachCate(data) {
  return request({
    url: model,
    method: 'post',
    data: data
  })
}

export function updateAttachCate(data) {
  return request({
    url: model,
    method: 'put',
    data
  })
}

export function delAttachCate(id) {
  return request({
    url: model,
    method: `delete/${id}`,
  })
}
